package com.netbao.sys.service;

import com.netbao.model.PageBean;
import com.netbao.model.PageResult;
import com.netbao.model.Result;
import com.netbao.sys.model.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {

    PageResult list(PageBean pageBean, String roleName);

    Result save(Role role);

    Result delete(Long id);

    Result saveRes(Long roleid, String resids);

    Result saveRes1(Map<String, Object> map);

    PageResult getRole(Long userid);

    List<Role> findByUserId(Long id);
}
